Identifying functions from relations